/**
 * @created 26-Feb-2006 12:50:20 p.m.
 * @version 0.0.1
 */ 
import SCUMMScenario.SCUMMScene;
import SCUMMGameControl.SCUMMActionBar;
import SCUMMCharacter.SCUMMActor;

class SCUMMCore.SCUMMGame {
 
 	private var oCurrentScene:SCUMMScene;
 	private var oActionsBar:SCUMMActionBar;
 	/** Property **/
 	public function get currentScene():SCUMMScene{
		return this.oCurrentScene;
	}
	public function set currentScene( value:SCUMMScene ):Void{
		this.oCurrentScene = value;
	}
	
 	public function SCUMMGame() {
 	}
 	
 	public static function crateActor( pmcSprite:MovieClip ):SCUMMActor{
 		return new SCUMMActor(pmcSprite);
 	}
 	
 	public function createActionBar(pmcActionBar:MovieClip):SCUMMActionBar{
 		this.oActionsBar = new SCUMMActionBar(pmcActionBar);
 		return this.oActionsBar;
 	}
 	
 	public function createCurrentScene( pmcScenario:MovieClip ) {
		if( pmcScenario == undefined )
			throw new Error("SCUMMScene - Error: The sprite of the main Scene can't be null");
			this.oCurrentScene =  new SCUMMScene( this, pmcScenario );
			return this.oCurrentScene;
 	}
}